//
//  MainView.h
//  UCiEnabler
//
//  Created by Delio Brignoli on 21/07/08.
//  Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CellTextField.h"
#import "CellLabelWidget.h"
#import "UpdateAccessOperation.h"

typedef enum {
	MainViewShowSwitch = 0,
	MainViewUpdating,
	MainViewShowStatus
} MainViewMode;

@interface MainView : UIView {
	NSArray *sectionTitles;
	UpdateAccessOperation *currentOperation;
	CellLabelWidget *statusCell;
	CellTextField *usernameCell;
	CellTextField *passwordCell;
	CellLabelWidget *switchCell;
	MainViewMode mode;
}

@property (nonatomic, retain) NSArray *sectionTitles;
@property (nonatomic, retain) UpdateAccessOperation *currentOperation;
@property (nonatomic, retain) CellLabelWidget *statusCell;
@property (nonatomic, retain) CellLabelWidget *switchCell;
@property (nonatomic, retain) CellTextField *usernameCell;
@property (nonatomic, retain) CellTextField *passwordCell;
@property (nonatomic, assign) MainViewMode mode;

@end
